/*
 * c7_review4.cpp
 *
 *  Created on: Sep 1, 2013
 *      Author: cyper.yin
 */
#include <iostream>
using namespace std;

int main_c7r4(int argc, char **argv) {
	int arr[10];

	fill(arr, arr+10, 24);

	for (int i = 0; i < 10; ++i) {
		cout <<"arr["<< i<<"]="  << arr[i] << endl;
	}

	return 0;
}
void fill(int * start, int * end, int value){
	int * pt;
	pt = start;
	while(pt < end){
		*pt = value;
		pt++;
	}
}
